<template>
子组件
  <h3>接收到的数据：{{msg}}</h3>
  <button @click="emits">emit</button>
</template>

<script>
export default {
  name: 'child',
  props: ['msg'],
  setup (prop, context) {
    console.log(prop.msg, '子组件');
    console.log(context,'子组件');
    function emits() {
     context.emit('Fun',prop.msg)
    }
    return {
      emits
    }
  }
}
</script>

<style>
</style>